<div class="span-24 clearfix" id="main">
				<div class="container">
	<div class="span-19">
		<div id="content">
			
<h1>Adding </h1>
 
<div class="form wide">

<form method="post" action="<?php echo site_url('users/edit') ?>" id="countries-form">
	<p class="note">Fields with <span class="required">*</span> are required.</p>

	
	<div class="errorMessage"> <?php echo notify_get_messages('user'); ?> </div>
 
	<div class="row">
		<label class="required" for="Countries_name">FirtName <span class="required">*</span></label>		
    <input type="text" value="<?php echo $result["firtname"] ?>" id="firtname" name="firtname" maxlength="100" />			</div>
	<div class="row">
		<label class="required" for="Countries_name">LastName <span class="required">*</span></label>		
    <input type="text" value="<?php echo $result["lastname"] ?>" id="lastname" name="lastname" maxlength="100" />			</div>
    
    <div class="row">
		<label class="required" for="Countries_name">Password </label>		
    <input type="password" value="" id="password" name="password" maxlength="100" />			</div>
  <div class="row">
		<label class="required" for="Countries_name">Password confirm</label>		
    <input type="password" value="" id="passconf" name="passconf" maxlength="100" />			</div>
<!--	<div class="row">
							</div>-->

	<div class="row">
		<label for="Countries_active">Active</label>		
    <select id="status" name="status">
<option <?php if ($result['status'] == '0') echo 'selected="selected"'?> value="0">Inactive</option>
<option <?php if ($result['status'] == '1') echo 'selected="selected"'?> value="1">Active</option>
</select>			</div>

	<div class="row">
		<label for="Countries_active">Role<span class="required"> *</span></label>
 <?php 
 $roleList = explode(',', $result['rolelist']);
 $chk = 'checked="checked"'
  ?>
        <input type="checkbox" name="role[]" value="3" <?php if (in_array(3, $roleList)) echo $chk ?> /> Administrator <br />
        <input type="checkbox" name="role[]" value="2" <?php if (in_array(2, $roleList)) echo $chk ?>  /> Authenticated user<br />
        <span style="padding-left: 110px;"><input type="checkbox" name="role[]" value="1" <?php if (in_array(1, $roleList)) echo $chk ?>  /> 
            Anonymous user</span> 	
    </div>
	<div class="row buttons">
    <input type="hidden" name="idx" value="<?php echo encrypt($result['id']) ?>" />
	<input type="submit" value="Save" name="yt0" class="button green" />	</div>

</form>
</div><!-- form -->		</div><!-- content -->
	</div>
	<div class="span-5 last">
		<div id="sidebar">
		<div id="yw0" class="portlet">
<div class="portlet-decoration">
<div class="portlet-title">Operations</div>
</div>
<div class="portlet-content">
<ul id="yw1" class="operations">
<li><a href="<?php echo site_url('users/add') ?>">Add new Administrator</a></li>
<li><a href="<?php echo site_url('users') ?>">List Administrators</a></li>
</ul></div>
</div>		</div><!-- sidebar -->
	</div>
</div>
			</div>
            
            
